package net.mysoft.framework.base;

import java.util.Date;
import java.util.Locale;

import net.mysoft.framework.i18n.Locales;
import net.mysoft.framework.util.TimeUtil;

public class BaseFlowPageModel {
	private String templateNode_ID;//流程节点ID
	private String nodeName_cn;
	private String nodeName_en;
	private String ftn_ID;//流程任务ID
	private String flo_ID;//流程实例ID
	private String ftc_ID;
	private String formUrl;//路径
	private String fln_UserCode;//选择的人 
	private int start;//启动	1是 0否
	private int lineStart = 0;//启动     1是 0否
	private int step;//步骤
	private String ftn_Class; //任务节点class
	private int ftnMissionsCompleted = 0; //ftn 完成多少个 fln才完成转一下步
    private java.util.Date ftn_HandleBeginTime;
    private java.util.Date ftn_HandleEndTime;
    private String completeUrl;//处理路径
    private String handlePrompt;//处理提示
    private String xiangMuBH;
    private String renWuJBXXBH;
	private Integer flag;//  1查看页面  2处理页面  8打印页面 
	private Integer edit;
	private boolean viewXMXX;  //是否显示项目信息
	public String getRenWuJBXXBH() {
		if(renWuJBXXBH!=null&&"null".equalsIgnoreCase(renWuJBXXBH)){
			renWuJBXXBH = null;
		}
		if(renWuJBXXBH!=null&&"".equals(renWuJBXXBH)){
			renWuJBXXBH = null;
		}
		return renWuJBXXBH;
	}
	public void setRenWuJBXXBH(String renWuJBXXBH) {
		if(renWuJBXXBH!=null&&"null".equalsIgnoreCase(renWuJBXXBH)){
			renWuJBXXBH = null;
		}
		if(renWuJBXXBH!=null&&"".equals(renWuJBXXBH)){
			renWuJBXXBH = null;
		}
		this.renWuJBXXBH = renWuJBXXBH;
	}
	public String getXiangMuBH() {
		if(xiangMuBH!=null&&"null".equalsIgnoreCase(xiangMuBH)){
			xiangMuBH = null;
		}
		if(xiangMuBH!=null&&"".equals(xiangMuBH)){
			xiangMuBH = null;
		}
		return xiangMuBH;
	}
	public void setXiangMuBH(String xiangMuBH) {
		if(xiangMuBH!=null&&"null".equalsIgnoreCase(xiangMuBH)){
			xiangMuBH = null;
		}
		if(xiangMuBH!=null&&"".equals(xiangMuBH)){
			xiangMuBH = null;
		}
		this.xiangMuBH = xiangMuBH;
	}
	public String getCompleteUrl() {
		return completeUrl;
	}
	public void setCompleteUrl(String completeUrl) {
		this.completeUrl = completeUrl;
	}
	public String getFtc_ID() {
		return ftc_ID;
	}
	public void setFtc_ID(String ftc_ID) {
		this.ftc_ID = ftc_ID;
	}
	public String getHandlePrompt() {
		return handlePrompt;
	}
	public void setHandlePrompt(String handlePrompt) {
		this.handlePrompt = handlePrompt;
	}
	public String getTimeConsuming(){
    	if(this.getFtn_HandleBeginTime()==null){
    		return "";
    	}
    	if(ftn_HandleEndTime!=null){
    		return TimeUtil.format(this.getFtn_HandleBeginTime(), this.getFtn_HandleEndTime());
    	}else{
    		return TimeUtil.format(this.getFtn_HandleBeginTime(), new Date());
    	}
    	
    }
	public java.util.Date getFtn_HandleBeginTime() {
		return ftn_HandleBeginTime;
	}
	public void setFtn_HandleBeginTime(java.util.Date ftn_HandleBeginTime) {
		this.ftn_HandleBeginTime = ftn_HandleBeginTime;
	}
	public java.util.Date getFtn_HandleEndTime() {
		return ftn_HandleEndTime;
	}
	public void setFtn_HandleEndTime(java.util.Date ftn_HandleEndTime) {
		this.ftn_HandleEndTime = ftn_HandleEndTime;
	}
	public int getFtnMissionsCompleted() {
		return ftnMissionsCompleted;
	}
	public void setFtnMissionsCompleted(int ftnMissionsCompleted) {
		this.ftnMissionsCompleted = ftnMissionsCompleted;
	}

	public Integer getFlag() {
		return flag;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}
	public int getLineStart() {
		return lineStart;
	}
	public void setLineStart(int lineStart) {
		this.lineStart = lineStart;
	}
	public int getStart() {
		return start;
	}
	public void setStart(int start) {
		this.start = start;
	}

	
	public String getTemplateNode_ID() {
		return templateNode_ID;
	}
	public void setTemplateNode_ID(String templateNode_ID) {
		this.templateNode_ID = templateNode_ID;
	}
	public String getNodeName() {
		Locale locale = Locales.getLocale();
    	return Locale.CHINA.equals(locale)?this.getNodeName_cn():this.getNodeName_en();
	}
	public String getNodeName_cn() {
		return nodeName_cn;
	}
	public void setNodeName_cn(String nodeName_cn) {
		this.nodeName_cn = nodeName_cn;
	}
	public String getNodeName_en() {
		return nodeName_en;
	}
	public void setNodeName_en(String nodeName_en) {
		this.nodeName_en = nodeName_en;
	}
	public String getFtn_ID() {
		return ftn_ID;
	}
	public void setFtn_ID(String ftn_ID) {
		this.ftn_ID = ftn_ID;
	}
	public String getFlo_ID() {
		return flo_ID;
	}
	public void setFlo_ID(String flo_ID) {
		this.flo_ID = flo_ID;
	}
	public String getFormUrl() {
		return formUrl;
	}
	public void setFormUrl(String formUrl) {
		this.formUrl = formUrl;
	}
	public int getStep() {
		return step;
	}
	public void setStep(int step) {
		this.step = step;
	}
	public String getFln_UserCode() {
		return fln_UserCode;
	}
	public void setFln_UserCode(String fln_UserCode) {
		this.fln_UserCode = fln_UserCode;
	}
	public String getFtn_Class() {
		return ftn_Class;
	}
	public void setFtn_Class(String ftn_Class) {
		this.ftn_Class = ftn_Class;
	}
	public Integer getEdit() {
		return edit;
	}
	public void setEdit(Integer edit) {
		this.edit = edit;
	}
	public boolean getViewXMXX() {
		return viewXMXX;
	}
	public void setViewXMXX(boolean viewXMXX) {
		this.viewXMXX = viewXMXX;
	}
	
	
}
